package day3

class PingPangPlayer extends Player with SpeakEnglish {

  def this(name:String,age:Int) = {
    this()
    this.name = name
    this.age = age
  }

  override def study(): Unit = {
    println(s"${name}${age}学习")
  }

  override def speak(): Unit = {
    println(s"${name}学习英语")
  }

  override def eat(): Unit = {
    println(s"${name}吃饭得学习")
  }
}
